-
Notifications
You must be signed in to change notification settings - Fork 35
Gather all operator logs on e2e test failure #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
c6e040c to
238bc2d
Compare
shayasoolin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be safer to keep the tail, just have it much longer, say 32K lines.
Ronkahn21
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we implement a line-limit control for logs? I recommend a parameter that defaults to -1 (unlimited). This is necessary because large test outputs (2,000+ lines) are currently flooding the terminal and cutting off vital early-stage debug data. Providing a way to redirect this to a file would also be a great solution.
Ah, yes I can see how this is annoying. I'll add make it configurable, stdout vs write to file with a timestamp. Still stdout for github CI unfortunately. |
ea8fa8a to
37f5db4
Compare
c608346 to
2616a2e
Compare
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR changes the e2e test diagnostic utility to gather all operator logs after a test failure, instead of just the last 2000 lines. This ensures complete diagnostic information is available when debugging test failures, rather than potentially missing earlier relevant logs that occurred before the failure.
Which issue(s) this PR fixes:
NONE
Special notes for your reviewer:
Small change to
operator/e2e/tests/debug_utils.go:operatorLogLinesconstant (previously set to 2000)TailLinesoption from the pod log request, which causes it to fetch all logsDoes this PR introduce a API change?
Additional documentation e.g., enhancement proposals, usage docs, etc.: